package org.jeecg.modules.lab.chemical.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 标物(化学品)信息管理表
 * @Author: jeecg-boot
 * @Date:   2023-08-15
 * @Version: V1.0
 */
@Data
@TableName("lab_chemical")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="lab_chemical对象", description="标物(化学品)信息管理表")
public class LabChemical implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**标物名称*/
	@Excel(name = "标物名称", width = 15)
    @ApiModelProperty(value = "标物名称")
    private String name;
	/**标物类别*/
	@Excel(name = "标物类别", width = 15)
    @ApiModelProperty(value = "标物类别")
    private String type;
	/**标物批号*/
	@Excel(name = "标物批号", width = 15)
    @ApiModelProperty(value = "标物批号")
    private String batch;
	/**纯度/标准*/
	@Excel(name = "纯度/标准", width = 15)
    @ApiModelProperty(value = "纯度/标准")
    private String purity;
	/**生产厂家*/
	@Excel(name = "生产厂家", width = 15)
    @ApiModelProperty(value = "生产厂家")
    private String factory;
	/**规格*/
	@Excel(name = "规格", width = 15)
    @ApiModelProperty(value = "规格")
    private String specs;
	/**入库数量*/
	@Excel(name = "入库数量", width = 15)
    @ApiModelProperty(value = "入库数量")
    private Double number;
	/**单位*/
	@Excel(name = "单位", width = 15, dicCode = "units")
	@Dict(dicCode = "units")
    @ApiModelProperty(value = "单位")
    private String units;
	/**有效期*/
	@Excel(name = "有效期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "有效期")
    private Date restrictedDate;
	/**证书*/
	@Excel(name = "证书", width = 15)
    @ApiModelProperty(value = "证书")
    private String certificate;
	/**颜色性状*/
	@Excel(name = "颜色性状", width = 15, dicCode = "character")
	@Dict(dicCode = "character")
    @ApiModelProperty(value = "颜色性状")
    private String properties;
	/**标识标签*/
	@Excel(name = "标识标签", width = 15, dicCode = "appearance")
	@Dict(dicCode = "appearance")
    @ApiModelProperty(value = "标识标签")
    private String tag;
	/**包装*/
	@Excel(name = "包装", width = 15, dicCode = "appearance")
	@Dict(dicCode = "appearance")
    @ApiModelProperty(value = "包装")
    private String packages;
	/**存放地点*/
	@Excel(name = "存放地点", width = 15)
    @ApiModelProperty(value = "存放地点")
    private String storagePlace;
	/**购买日期*/
	@Excel(name = "购买日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "购买日期")
    private Date buyDate;
	/**标物状态*/
	@Excel(name = "标物状态", width = 15, dicCode = "chemical_status")
	@Dict(dicCode = "chemical_status")
    @ApiModelProperty(value = "标物状态")
    private String status;
	/**用途*/
	@Excel(name = "用途", width = 15)
    @ApiModelProperty(value = "用途")
    private String purpose;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
	/**实物图片*/
	@Excel(name = "实物图片", width = 15)
    @ApiModelProperty(value = "实物图片")
    private String picture;
	/**当前库存*/
	@Excel(name = "当前库存", width = 15)
    @ApiModelProperty(value = "当前库存")
    private Double inventoryNow;
	/**单位*/
	@Excel(name = "单位", width = 15, dicCode = "units")
	@Dict(dicCode = "units")
    @ApiModelProperty(value = "单位")
    private String unity;

    /**数据同步标识*/
    @ApiModelProperty(value = "数据同步标识")
    private java.lang.String synFlag;
}
